<?php

   require '../modules/facebook_phpSdk/src/facebook.php';
   
   $config = array(
   	'appId'	=> '423263144390114',
   	'secret'	=> '9d7e1f8c0dc393f3938bcc1d1595c19a',   
   );

   $facebook = new Facebook($config);
   $user = $facebook->getUser();

   if ($user) {
      try {
         $user_profile = $facebook->api('/me');
         print_r($user_profile);
      } catch (FacebookApiException $e) {
         echo $e;
      }
   }
?>
